package org.terramagnet.mvcframework.jdbc;

/**
 * 数据库方言.
 *
 * @author lip
 */
public interface Dialect {

    /**
     * 生成count语句.
     * <p>
     * 用于分页查询.</p>
     */
    public String toCountSelect(String select) throws IllegalArgumentException;

    /**
     * 生成分页查询语句.
     */
    public String toPaginalSelect(String select) throws IllegalArgumentException;
}
